from pprint import pprint

from flask_script import Manager, Server

from application import app

manager = Manager(app)
manager.add_command("runserver",
                    Server(host='0.0.0.0', port=app.config['SERVER_PORT'], use_debugger=True, use_reloader=True))

if __name__ == '__main__':
    # pprint(app.config)
    print(app.url_map)
    manager.run()
